﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="Crm.Views.RaporView"
           Width="842" Height="600" 
           Title="Rapor">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
        <controls:TabControl Height="Auto" HorizontalAlignment="Stretch" Margin="0" x:Name="tabControl1" VerticalAlignment="Stretch" Width="Auto" Padding="0">
            <controls:TabItem Header="Rapor" x:Name="tabItem1">
                <Grid>
                    <Button HorizontalAlignment="Left" Margin="741,-25,0,0" VerticalAlignment="Top" Width="75" Click="btnYazdir_Click"  Content="Yazdır"/>
                    <sdk:DataGrid x:Name="grdResult" Margin="2"/>
                </Grid>
            </controls:TabItem>
            <controls:TabItem Header="Grafik"  x:Name="tabItem2" Height="24" VerticalAlignment="Bottom">
                <toolkit:Chart Height="Auto" x:Name="chart1" Title="Chart Title" Width="Auto" Margin="2">
                    <toolkit:ColumnSeries DependentValuePath="X" IndependentValuePath="Y">
                        <toolkit:ColumnSeries.ItemsSource>
                            <PointCollection>
                                <Point>1,10</Point>
                                <Point>2,20</Point>
                                <Point>3,30</Point>
                                <Point>4,40</Point>
                            </PointCollection>
                        </toolkit:ColumnSeries.ItemsSource>
                    </toolkit:ColumnSeries>
                </toolkit:Chart>
            </controls:TabItem>
        </controls:TabControl>
        <Button x:Name="btnExcell" HorizontalAlignment="Left" Margin="664,1,0,0" VerticalAlignment="Top" Width="75" Click="btnExcell_Click"  Content="Exel"/>
    </Grid>
</controls:ChildWindow>